﻿using DotNetCoreStudy.Page.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DotNetCoreStudy.Page.services
{
    public interface IDepartmentService
    {
        /// <summary>
        /// 获取所有部门信息
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<Department>> GetAll();
        
        /// <summary>
        /// 根据id获取部门
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<Department> GetDepartmentById(int Id);
        
        /// <summary>
        /// 获取公司总体情况
        /// </summary>
        /// <returns></returns>
        Task<CompanySummary> GetCompanySummary();
        
        /// <summary>
        /// 添加部门
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        Task Add(Department department);

        /// <summary>
        /// 更新部门
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        Task Update(Department department);
    }
}
